﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace YouDaoNotesCodes.CSharp_highLevel
{
    class CSharpBasicJudge
    {
        public string isEnglishOrChinese(string str)
        {
            string res = string.Empty;
            Regex regChina = new Regex("^[^\x00-\xFF]");
            Regex regEnglish = new Regex("^[a-zA-Z]");
            //string str = "aaa";
            if (regEnglish.IsMatch(str))
            {
                res = str + " 是英文";
            }
            else if (regChina.IsMatch(str))
            {
                res =str +" 是中文";
            }
            return res;
        }
    }
}
